Quantum readout error mitigation by stochastic matrix inversion

ABSTRACT

A method of mitigating quantum readout errors by stochastic matrix inversion includes performing a plurality of quantum measurements on a plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; selecting a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of qubits; training the model parameters to minimize a loss function that compares predictions of the model with the matrix; computing an inverse of the model based on the trained model parameters; and providing the computed inverse of the model to a noise prone quantum readout of the plurality of qubits to obtain a substantially noise free quantum readout.

BACKGROUND

The currently claimed embodiments of the present invention relate to quantum computation, and more specifically, to methods of mitigating quantum readout errors in a quantum computer by stochastic matrix inversion.

Recent experiments indicate that noisy multi-qubit measurements can be well understood in terms of purely classical noise models. For example, an ideal measurement outcome ‘1’ on some qubit can be misread as ‘0’ with a certain probability and vice versa, an ideal measurement outcome ‘0’ on some qubit can also be misread as ‘1’ with a certain probability. In certain cases, cross-talk between qubits results in more complicated correlated readout errors.

Experimentalists describe readout errors by a matrix of transition probabilities A. An element A_(y,x) of the matrix A corresponds to the probability of misreading the ideal measurement outcome x as y. The matrix A can have a size 2^(n)×2^(n) where n is the number of qubits. Conventional readout error mitigation methods consist of a measurement calibration step and a noise inversion step. The calibration probes the noise on each input basis vector and provides an empirical estimate of the noise matrix A. A noise inversion step applies the inverse matrix A⁻¹ to the observed measurement outcomes expressed as a probability vector.

Error mitigation enables high-precision estimation of mean values of observables, for example in the context of variational quantum algorithms or multi-qubit tomography. In addition, in contrast to quantum error correction, error mitigation does not introduce overhead in terms of extra qubits or gates. The only overhead results from the need to repeat the experiment many times which can be performed on quantum devices. However, this approach is not applicable to single-shot measurements. In addition, full measurement calibration may use at least 2^(n) experiments to probe the noise on each basis vector. However, due to limits in classical memory and runtime required to apply the inverse A-matrix which grows as 2^(O(n)), this approach may not be scalable to large matrices A. As a result, determining the matrix A and inverting the matrix A may not be efficient for a relatively large number of qubits (e.g., greater than 20 qubits).

SUMMARY

An aspect of the present invention is to provide a method of mitigating quantum readout errors by stochastic matrix inversion. The method includes performing a plurality of quantum measurements on a plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; selecting a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of qubits; training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; computing an inverse of the model representing an inverse of the matrix based on the trained model parameters; and providing the computed inverse of the model to a noise prone quantum readout of the plurality of qubits to obtain a substantially noise free quantum readout.

In an embodiment, selecting the model includes selecting a Tensor Product (TP) noise model, and the plurality of model parameters include error rates of independent transitions from state 0 to state 1 and probabilities of independent transitions from state 1 to state 0. In an embodiment, the model for the matrix is such that the matrix is a product of a plurality of qubit matrices, each qubit matrix representing a state of a given qubit j in the plurality of qubits, the matrix being expressed as:

${A = {\begin{bmatrix} {1 - \epsilon_{1}} & \eta_{1} \\ \epsilon_{1} & {1 - \eta_{1}} \end{bmatrix} \otimes \ldots \otimes \begin{bmatrix} {1 - \epsilon_{n}} & \eta_{n} \\ \epsilon_{n} & {1 - \eta_{n}} \end{bmatrix}}},$

wherein ∈_(j) are error rates describing transition from state 0 to state 1 for qubit j (j=1 . . . n), and

wherein η_(j) (j=1 . . . n) are error rates describing transition from state 1 to state 0 for qubit j (j=1 . . . n).

In an embodiment, selecting the model includes selecting a Continuous Time Markov Process (CTMP) noise model, and the plurality of model parameters include atomic generator elements G_(i) and transition rates r_(i), where i represents a qubit i in the plurality of qubits. In an embodiment, the model for the matrix A is such that

A=exp(G)

wherein model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i as follows:

$G = {\sum\limits_{i}{G_{i}{r_{i}.}}}$

In an embodiment, the model approximates the matrix as an exponential of a model parameter generator matrix G, wherein the model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i; the atomic generator elements G_(i) of the model parameter generator matrix G generates a transition from a bit string a_(i) to another bit string b_(i) on a subset of bits C_(i), wherein a_(i) and b_(i) are either state 0 or state 1 of qubit i. In an embodiment, the inverse of the model representing the inverse of the matrix based on the trained model parameters includes computing the exponential of negative model parameter generator matrix G.

In an embodiment, the number of the plurality of model parameters grows linearly with the number of the plurality of states.

In an embodiment, providing the computed inverse of the model to the noise prone quantum readout of the plurality of qubits comprises applying the computed inverse of the model to the noise prone quantum readout of the plurality of qubits to substantially correct the noise prone quantum readout so as to substantially remove noise in the noise prone quantum readout.

In an embodiment, the method further includes constructing the matrix, the matrix having a plurality of matrix elements, each element of the matrix associates each of the pre-determined states of the plurality of qubits with a corresponding each of the plurality of measurement outputs. In an embodiment, the number of the plurality of model parameters grows less than a growth of a number of the plurality of matrix elements.

In an embodiment, training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix comprises finding the plurality of model parameters that substantially fit the matrix.

Another aspect of the present invention is to provide a computer readable medium on which is stored non-transitory computer-executable code, which when executed by a classical computer causes a quantum computer to: perform a plurality of quantum measurements on plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; select a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of states; train the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; compute an inverse of the model representing an inverse of the matrix based on the trained model parameters; and apply the computed inverse of the model to a noise prone quantum readout of the plurality of qubits of the quantum computer to obtain a substantially noise free quantum readout from the quantum computer.

A further aspect of the present invention is to provide a classical computer configured to execute a non-transitory computer-executable code, the code when executed by the classical computer causes a quantum computer to: perform a plurality of quantum measurements on plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; select a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of states; train the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; compute an inverse of the model representing an inverse of the matrix based on the trained model parameters; and apply the computed inverse of the model to a noise prone quantum readout of the plurality of qubits of the quantum computer to obtain a substantially noise free quantum readout from the quantum computer.

By using the above methods and computer code, computational cost of applying the inverse A-matrix is reduced from 2^(O(n)) to 2^(εn). Here ε<<1 is the readout error rate quantified below. Classical memory footprint is substantially reduced from 2^(O(n)) to O(n). While the runtime scaling may still be exponential, the constant in the exponent is reduced dramatically enabling demonstrations on a a device with a plurality of qubits (e.g., 20 or more qubits). The stochastic matrix inversion algorithm described sidesteps computing the inverse A-matrix explicitly.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure, as well as the methods of operation and functions of the related elements of structure and the combination of parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals designate corresponding parts in the various figures. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the invention.

FIG. 1 is a schematic representation of a classical noise channel introducing noise to an ideal measurement of a state of n qubits, according to an embodiment of the present invention;

FIG. 2 is a schematic representation of a classical noise channel introducing noise to an ideal measurement of a known basis state, according to an embodiment of the present invention; and

FIG. 3 is a flow chart of a method of mitigating quantum readout errors by stochastic matrix inversion on a quantum computer, according to an embodiment of the present invention.

DETAILED DESCRIPTION

FIG. 1 is a schematic representation of a classical noise channel introducing noise to an ideal measurement of a state of a plurality of qubits n, according to an embodiment of the present invention. For example, FIG. 1 shows that an ideal measurement outcome ‘x’ 105 on some qubit (having a qubit state p) 102 in the plurality of qubits n can be misread as readout ‘y’ 108, when performing measurement 104. The readout errors in the plurality of qubits n due to a classical noise channel 106 can be described by transition probabilities matrix A. Each element A_(y,x) in the matrix A corresponds to the probability of misreading the ideal measurement outcome ‘x’ 105 as ‘y’ 108. The matrix A can have a size 2^(n)×2^(n) where n is the number of the plurality of qubits 102.

In order to mitigate quantum readout errors in a quantum mechanical computer (quantum computer), there is provided a method that is based on stochastic matrix inversion. Instead of computing the inverse of the matrix A explicitly which is computer intensive and can be inefficient, the present method, according to an embodiment of the present invention, uses a combination of model fitting and stochastic matrix inversion methods. The model is efficiently inversed without requiring large computing resources contrary to classical or conventional matrix inversion techniques.

FIG. 2 is a schematic representation of a classical noise channel introducing noise to an ideal measurement of a known basis state, according to an embodiment of the present invention. FIG. 3 is a flow chart of a method of mitigating quantum readout errors by stochastic matrix inversion on a quantum computer, according to an embodiment of the present invention. As shown in FIG. 2 and FIG. 3, the method of mitigating quantum readout errors by stochastic matrix inversion includes performing a plurality of quantum measurements (N shots) 204 on a plurality of qubits (having predetermined plurality of states (x¹, x², . . . , y^(K)) 202 to obtain a plurality of measurement outputs y¹, y², . . . , y^(N) 208 for each qubit state 202, at S302. An ideal measurement outcome ‘x’ 205 on some qubit (having a qubit state) 202 in the plurality qubits n can be misread as readout ‘y’ 208, when performing measurement 204 due to the presence of classical noise channel 206.

A “shot” corresponds to preparing a state of a qubit and then performing a quantum measurement of the state of the qubit. Therefore, a plurality of shots corresponds to a plurality of quantum measurements of the state of a qubit. For example, a qubit having a state (input) known to be 0 (e.g., ground state) can be measured and readout (output) as 0 or 1 in a plurality of measurements N because of the presence of the classical noise 206. For example, in N quantum measurements or shots, some measurements of the state 0 can be readout as 0 (i.e., without introduction of an error) while some other measurements of the state 0 can be readout as 1 (i.e., with an introduction of an error).

Table 1 shows that a qubit state x¹ can be readout as y^(1,1) for shot 1, y^(1,2) for shot 2, . . . , y^(1,N) for shot N. Similarly, qubit state x² can be readout as y^(2,1) for shot 1, y^(2,2) for shot 2, . . . , y^(2,N) for shot N. Qubit state x^(K) can be readout as y^(K,1) for shot 1, y^(K,2) for shot 2, . . . , y^(K,N) for shot N.

TABLE 1 INPUTS OUTPUTS x¹ y^(1, 1), y^(1, 2), . . . , y^(1, N) x² y^(2, 1), y^(2, 2), . . . , y^(2, N) . . . . . . x^(K) y^(K, 1), y^(K, 2), . . . , y^(K, N)

Therefore, there exists a matrix A that links the various inputs or predetermined qubit states x¹, x², . . . , x^(K) to the various outputs as shown in Table. 1.

As shown in FIG. 3, the method includes selecting a model for the matrix linking the predetermined plurality of states to the plurality of measurement outputs, at S304. The model has a plurality of model parameters. A number of the plurality of model parameters grows less than exponentially with a number of the plurality of qubits. In an embodiment, the number of the plurality of model parameters grows linearly with the number of the plurality of qubits. For example, if the number of qubits is equal to n, the number of the plurality of model parameters grows linearly with the number n. If n grows from 2 to 10 qubits, for example, the number of parameters also grows linearly from 2 to 10. On the other hand, as illustrated in FIG. 2, the matrix A itself linking the predetermined states 202 to the various outputs or readouts 208 would grow exponentially as 2^(n)×2^(n). That is, in this example, the matrix A would grow exponentially from 2²×2² (i.e., 4×4) to 2¹⁰×2¹⁰. This would render computing the inverted matrix A computer intensive or even prohibitive for a very large number of qubits (e.g., 10 or more) and thus qubit states 202, such as for example hundreds, thousands, or more.

In an embodiment, the method may also include constructing the matrix A, the matrix A having a plurality of matrix elements. Each element of the matrix A associates each of the pre-determined states of the plurality of qubits with a corresponding each of the plurality of measurement outputs. In an embodiment, the number of the plurality of model parameters grows less than a growth of a number of the elements of the matrix. For example, if the number of elements of the matrix grows as 2^(n)×2^(n), where n is the number of qubits, the number of the plurality of model parameters only grows linearly with the number n of qubits and thus less than exponentially.

As shown in FIG. 3, the present method also includes training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix, at S306. In an embodiment, training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix includes finding the plurality of model parameters that substantially reproduce, simulate or fit the matrix A.

In an embodiment, selecting the model includes selecting a Tensor Product (TP) noise model. The plurality of model parameters includes error rates of independent transitions from state 0 to state 1 and probabilities of independent transitions from state 1 to state 0. In an embodiment, the model for the matrix A is such that the matrix A is a product of a plurality of qubit matrices, each qubit matrix represents a state of a given qubit j in the plurality of qubits n. In an embodiment, the matrix A can be expressed mathematically as follows:

${A = {\begin{bmatrix} {1 - \epsilon_{1}} & \eta_{1} \\ \epsilon_{1} & {1 - \eta_{1}} \end{bmatrix} \otimes \ldots \otimes \begin{bmatrix} {1 - \epsilon_{n}} & \eta_{n} \\ \epsilon_{n} & {1 - \eta_{n}} \end{bmatrix}}},$

wherein ∈_(j) are error rates describing a transition from state 0 to state 1 for qubit j (j=1 . . . n), and wherein η_(j) (j=1 . . . n) are error rates describing a transition from state 1 to state 0 for qubit j (j=1 . . . n).

In another embodiment, selecting the model includes selecting a Continuous Time Markov Process (CTMP) noise model. In this case, the plurality of model parameters includes atomic generator elements G_(i) and transition rates r_(i), where i represents a qubit i in the plurality of qubits. The Markov chain described by the A-matrix can be efficiently simulated classically using the Gillespie algorithm, for example.

In an embodiment, the model for the matrix A can be expressed as the exponential of model parameter generator matrix G such that

A=exp(G).

The model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i as follows:

$G = {\sum\limits_{i}{G_{i}{r_{i}.}}}$

In this case, the parameters G_(i) and r_(i) are stored in order to calculate the model parameter generator matrix G instead of storing all the elements of the matrix A.

In an embodiment, the atomic generator elements G_(i) include, for example: element G₁ corresponding to a transition from state 0 to state 1 of a first qubit (Q1) in the plurality qubits, element G₂ corresponding to a transition from state 1 to state 0 of the first qubit (Q1) in the plurality of qubits, element G₃ corresponding to a transition from state 0 to state 1 of a second qubit (Q2) in the plurality of qubits, and element G₄ corresponding to a transition from state 1 to state 0 of the second qubit (Q2) in the plurality of qubits. In an embodiment, the atomic generator elements G_(i) may further include, for example: element G₅ corresponding to transition from state 01 to state 11 of neighboring first and second qubits (Q1, Q2), and element G₆ corresponding to a transition from state 10 to state 11 of the neighboring first and second qubits (Q1, Q2). The elements G₁ . . . G₆ can be written as shown in Table 2.

TABLE 2 0 → 1 (Q1) G₁ = (|1 

  

 0| − |0 

  

 0|) ⊗ I 1 → 0 (Q1) G₂ = (|0 

  

 1| − |1 

  

 1|) ⊗ I 0 → 1 (Q2) G₃ = I ⊗ (|1 

  

 0| − |0 

  

 0|) 1 → 0 (Q2) G₄ = I ⊗ (|0 

  

 1| − |1 

  

 1|) 01 → 11 (Q1, Q2) G₆ = |11 

  

 01| − |01 

  

 01| 10 → 11 (Q1, Q2) G₆ = |11 

  

 10| − |10 

  

 10|

In this example, the model parameter generator matrix G can be written as the sum of the products r_(i)G_(i) as follows:

G=r ₁ G ₁ +r ₂ G ₂ + . . . +r ₆ G ₆

The model captures correlated readout errors. A good agreement is found with the experimental data for the CTMP model that only includes atomic transitions for nearest-neighbor pairs of qubits (first qubit Q1 and second qubit Q2) on the device connectivity graph. Such model contains only O(n) atomic generator elements.

Therefore, in an embodiment, the model approximates the matrix A as an exponential of model parameter generator matrix G. The model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i. The atomic generator elements G_(i) of the model parameter generator matrix G generate a transition from a bit string a_(i) to another bit string b_(i) on a subset of bits C_(i), wherein a_(i) and b_(i) are either state 0 or state 1 of qubit i.

As shown in FIG. 3, the method also includes computing an inverse of the model that represents an inverse of the matrix based on the trained model parameters, at S308. For example, in the case of the Continuous Time Markov Process (CTMP) noise model, computing the inverse of the model representing the inverse of the matrix based on the trained model parameters includes computing the exponential of negative model parameter generator matrix G, as follows:

A ⁻¹=exp(−G)

This enables efficient implementation of the noise inversion step as the inversion simply puts a negative sign on the model parameter generator matrix G.

As shown in FIG. 3, the method also includes providing the computed inverse of the model to a noise prone quantum readout of the plurality of qubits to obtain a substantially noise free quantum readout, at S310. In an embodiment, providing the computed inverse of the model to the noise prone quantum readout of the plurality of qubits includes applying the computed inverse of the model to the noise prone quantum readout of the plurality of qubits to substantially correct the noise prone quantum readout so as to substantially remove noise in the noise prone quantum readout.

In an embodiment, the term “substantially noise free” can be defined to mean noise levels that are low enough to produce an error rate less than 1%, for example. In another embodiment, the term “substantially noise free” can be defined to mean noise levels that are low enough to produce an error rate less than 0.5%, for example. In yet another embodiment, the term “substantially noise free” can be defined to mean noise levels that are low enough to produce an error rate less than 0.1%, for example. A tolerance of a specific error rate (less than 1%, less than 0.5%, less than 0.1%, etc. . . . ) can depend on the model used.

In an embodiment, the above method can be used for mitigating measurement errors for a certain class of quantum algorithms, where measurement outcomes are used for computing mean values of observables. Notable examples of such algorithms are variational quantum eigensolvers, quantum machine learning, and tomography of entangled states.

As it can be understood from the above paragraphs, in an embodiment, the method includes three basic steps: noise model selection, measurement calibration, and noise inversion. The model selection step aims at identifying and parameterizing dominant noise processes in a given n-qubit device. In an embodiment, the Tensor Product (TP) model can be used. In another embodiment, a Markovian noise model can be used instead. Both types of models depend on O(n) parameters. Whereas, the full A-matrix model requires 4^(n) parameters.

The measurement calibration step aims at learning the unknown parameters of the noise model. As described in the above paragraphs, this is achieved by preparing a set of well-characterized input states (e.g. the standard basis vectors) and repeatedly performing n-qubit measurements on each input state. The calibration dataset is then used to train the noise model.

Finally, the noise inversion step aims at simulating the ideal n-qubit measurement. This is achieved by applying the inverse of the noise channel to the observed measurement data. The noise models described herein enable efficient implementation of all above steps. The overhead introduced by the error mitigation, including the number of experiments and the cost of classical processing, scales as 2^(O(∈n)), where ∈ is the noise rate. One benefit of the method described herein according to an embodiment of the present invention is that the method does not require any modifications at the hardware level. The improved measurement fidelity is achieved by a post-processing of the measured outcomes.

UNBIASED ERROR MITIGATION: In an embodiment, we consider ρ to be the output state of a (noisy) quantum circuit acting on

qubits. It is possible to measure an expected value of a given observable O on the state ρ within a specified precision δ. For simplicity, below we assume that the observable O is diagonal in the standard basis and takes values in the interval [−1, 1] which can be expressed mathematically by the following equation.

${O = {\sum\limits_{x = {\{{0,1}\}}^{n}}{{O(x)}\left. x \right\rangle\left\langle x \right.}}},{{{O(x)}} \leq 1.}$

Considering M independent experiments (i.e., shots) where each experiment (i.e., shot) prepares the state ρ and then measures each qubit in the standard basis. If s^(i)∈{0, 1}^(n) is a string of measurement outcomes observed in the i-th experiment, in the absence of measurement errors one can approximate the mean value Tr(ρO) by an empirical mean value as follows:

$\begin{matrix} {\mu = {M^{- 1}{\sum\limits_{i = 1}^{M}{{O\left( s^{i} \right)}.}}}} & (1) \end{matrix}$

Using Hoeffding's inequality, we obtain |μ−Tr(ρO)|≤δ with high probability (at least ⅔) if we choose M=4δ⁻². μ is an unbiased estimator of Tr(ρO).

If we assume that the measurements are noisy, the general model of a noisy n-qubit measurement involves a Positive Operator Value Measure (POVM) with 2^(n) elements {Π_(x)} labeled by n-bit strings x. The probability of observing a measurement outcome x is given by P(x)=Tr(ρΠ_(x)). In the ideal case one has Π_(x)=|x

x| while in the presence of noise Π_(x) can be arbitrary positive semi-definite operators that obey the normalization condition Σ_(x)Π_(x)=I. To enable efficient error mitigation, a simplifying assumption can be made that all POVM elements Π_(x) are diagonal in the standard basis. Then one can write Π_(x) as follows:

$\Pi_{x} = {\sum\limits_{y}{\left\langle {x{A}y} \right\rangle\mspace{11mu}\left. y \right\rangle\left\langle y \right.}}$

for some stochastic matrix A of size 2^(n). In other words,

xA|y

corresponds to the probability of observing an outcome x provided that the true outcome is y. In this section, it can be assumed that the matrix A is known. By analogy with Equation (1), an error-mitigated empirical mean value can be defined as:

$\begin{matrix} {\xi = {M^{- 1}{\sum\limits_{i = 1}^{M}{\sum\limits_{x}{{O(x)}\mspace{14mu}{\left\langle {x{A^{- 1}}s^{i}} \right\rangle.}}}}}} & (2) \end{matrix}$

The random variable ξ is an unbiased estimator of Tr(ρO) with the standard deviation σ_(ξ)≤ΓM^(−1/2), where

$\begin{matrix} {\Gamma = {\max\limits_{y}\;{\sum\limits_{x}\;{\left\langle {x{{{A^{- 1}\left. y \right\rangle}}.}} \right.}}}} & (3) \end{matrix}$

By Hoeffding's inequality, |ξ−Tr(ρO)|≤δ with high probability (at least ⅔) if we choose

M=4δ⁻²Γ².  (4)

This determines the number of shots that is sufficient to achieve the desired precision δ. Since M ˜δ⁻² in the ideal case, the quantity Γ² can be viewed as an error mitigation overhead.

TENSOR PRODUCT NOISE: In an embodiment, a simple case when A is a tensor product of 2×2 stochastic matrices can be considered, as described in the above paragraphs.

$\begin{matrix} {A = {\begin{bmatrix} {1 - \epsilon_{1}} & \eta_{1} \\ \epsilon_{1} & {1 - \eta_{1}} \end{bmatrix} \otimes \ldots \otimes {\begin{bmatrix} {1 - \epsilon_{n}} & \eta_{n} \\ \epsilon_{n} & {1 - \eta_{n}} \end{bmatrix}.}}} & (5) \end{matrix}$

As described in the above paragraphs, ∈_(j) and η_(j) are error rates describing transitions 0→1 and 1→0 respectively. In an embodiment, a calculation provides the following result.

$\begin{matrix} {\Gamma = {\prod\limits_{j = 1}^{n}{\frac{1 + {{\epsilon_{j} - \eta_{j}}}}{1 - \epsilon_{j} - \eta_{j}}.}}} & (6) \end{matrix}$

In this case, we assume for simplicity that ∈_(j), η_(j)≤½. As described in the above paragraphs and further in detail in the following paragraphs, the error rates ∈_(j), η_(j) can be estimated by calibrating the measurement. Hence, equations (4,6) can be used to determine the number of shots for a given precision δ. For example, if all error rates are the same, └_(j)=η_(j)=∈<<1, one has Γ≈e^(2∈n). The error mitigation overhead scales as δ²≈e^(4∈n).

In an embodiment, the error-mitigated mean value ξ can be computed efficiently in the special case when the observable O has a tensor product form, O=O₁⊗ . . . ⊗O_(n). For example, O can be a product of Pauli Z operators on some subset of qubits. Alternatively, O can project some subset of qubits onto 0 or 1 states. From equations (2,5) the following equation (7) can be obtained.

$\begin{matrix} {\xi = {M^{- 1}{\sum\limits_{i = 1}^{M}{\prod\limits_{j = 1}^{n}{\left\langle {+ \left| {O_{j}\begin{bmatrix} {1 - \epsilon_{j}} & \eta_{j} \\ \epsilon_{j} & {1 - \eta_{j}} \end{bmatrix}}^{- 1} \middle| s_{j}^{i} \right.} \right\rangle.}}}}} & (7) \end{matrix}$

Where |+

=|0

+|1

and s_(j) ^(i) is the j-th bit of s^(i). The i-th term in Equation (7) involves n inner products between single-qubit states. Therefore, one can compute ξ in time roughly nM. The post-processing runtime is linear in the number of qubits and the number of shots. In the following section (Correlated Noise) we provide an efficient algorithm for approximating the mitigated mean value for an arbitrary observable O. The algorithm has runtime roughly nMδ⁻², where δ is the desired precision. It is assumed that O(x) can be computed in unit time for any given x.

CORRELATED NOISE: Although the Tensor Product noise model is easy to analyze, it may leave aside cross-talk errors encountered in real-world setups. For small enough number of qubits, the full noise matrix A can be estimated from the experimental data. However, since the full matrix A depends on roughly 4^(n) parameters, this method quickly becomes impractical. Instead, the noise matrix A is fitted with a model that depends only on poly(n) parameters. A good noise model is expressive enough to capture cross-talk errors in real devices. At the same time, the model should be sufficiently simple such that the error-mitigated mean value ξ defined in Equation (2) can be computed efficiently.

Alternatively, or in addition, as described in the above paragraphs, the noise matrix A can be modeled by a Continuous Time Markov Process (CTMP) model where each step generates a transition on a small subset of bits. As defined previously the matrix A can be expressed as follows:

$\begin{matrix} {{A = e^{G}},{G = {\sum\limits_{i = 1}^{w}{r_{i}G_{i}}}}} & (8) \end{matrix}$

where e^(G) is the matrix exponential, r_(i)≥0 are transition rates, and G_(i) generates a transition from a bit string α^(i) to another string b^(i) on a certain subset of bits C_(i),

G _(i)=(|b ^(i)

a ^(i) |−|a ^(i)

s ^(i)|)C _(i) ⊗I _(else).  (9)

Wherein C_(i)⊆[n], a^(i), b^(i)∈{0,1}^(|C) ^(i) ^(|), and I_(else) is the identity operator acting on all qubits j∉C_(i). As stated above, the operators G_(i) are referred to as atomic generators. One can easily verify that equation (8) defines an invertible stochastic matrix. The inverse of A can be computed analytically: A⁻¹=e^(−G). The CTMP noise model can be efficiently simulated using the Gillespie algorithm. It takes as input a basis state x and returns a sample from the probability distribution A|x

.

The Tensor Product noise model in equation (5) can also be easily expressed as a CTMP using the following identity:

${\begin{bmatrix} {1 - \epsilon} & \eta \\ \epsilon & {1 - \eta} \end{bmatrix} = e^{G}},{G = {- {{\frac{\log\left( {1 - \epsilon - \eta} \right)}{\epsilon + \eta}\begin{bmatrix} {- \epsilon} & \eta \\ \epsilon & {- \eta} \end{bmatrix}}.}}}$

Where we assume that ∈+η<1 and use the natural logarithm. Therefore, G includes two atomic transitions 1→0 and 0→1 with suitable rates. In an embodiment, a choice of the atomic generators G_(i) can be hardware dependent. For example, for platforms based on transmon qubits, it is natural to allow two-qubit transitions only for pairs of nearest-neighbor qubits that are coupled by a microwave resonator. If (i, j) is a pair of nearest-neighbor qubits, we allow all possible atomic transitions that involve the pair of bits i, j, namely, 00→01,00→10,00→11,01→00,01→10,01→11, etc. Thus, if the qubit connectivity graph has m edges, the total number of atomic transitions is w=12m. The rate r_(i) of each transition is determined from the measurement calibration data.

In the following paragraphs, we show how to compute the error-mitigated mean value ξ defined in equation (2). Since ξ itself is only a δ-estimate of the true mean value Tr(ρO), it suffices to approximate ξ within an error ≈δ. Our approximation algorithm is based on the following. If we suppose A is an invertible stochastic matrix, there exist stochastic matrices S_(α) and real coefficients c_(α) such that:

$\begin{matrix} {{{c}_{1} \equiv {\sum\limits_{\alpha}{c_{\alpha}}}} = {{\Gamma\mspace{14mu}{and}\mspace{14mu} A^{- 1}} = {\sum\limits_{\alpha}{c_{\alpha}{S_{\alpha}.}}}}} & (10) \end{matrix}$

Furthermore, ∥c∥₁≥Γ for any decomposition as above. Γ is the quantity defined in equation (3). The following algorithm can be used for approximating the error-mitigated mean value ξ.

Algorithm 1: Stochastic Matrix Inversion T ← 4δ⁻² ∥c∥₁ ² for t = 1 to T do Sample i ∈ [M] uniformly at random Sample α from the distribution q_(α) = |c_(α)|/∥c∥₁ Sample x from the distribution (x|S_(α)|s^(i)) ξ₁ ← sgn(c_(α))O(x) end for return η = T⁻¹ ∥c∥₁ Σ_(t=1) ^(T) ξ_(t) In algorithm 1, c_(α),

_(α) are defined above. In an embodiment, the output of this algorithm satisfies |η−ξ|≤δ with high probability (at least ⅔). Indeed, substituting equation (10) into equation (2) we obtain the following equation (11).

$\begin{matrix} {\xi = {M^{- 1}{c}_{1}{\sum\limits_{i = 1}^{M}{\sum\limits_{\alpha}{\sum\limits_{x}{q_{\alpha}\;{sgn}\;\left( c_{\alpha} \right){O(x)}\mspace{14mu}\left\langle x \right.S_{\alpha}{\left. s^{i} \right\rangle.}}}}}}} & (11) \end{matrix}$

That is

ξ=∥c∥ ₁

_(i,α,x) sgn(cα)O(x(i,α)).  (12)

Where i∈[M] is picked uniformly at random, α is sampled from q_(α), and x(i, α) is sampled from the distribution

x|S_(α)|s^(i)

with fixed i, α. Accordingly, a random variable |c|₁sgn(c_(α))O(x(i, α)) is an unbiased estimator of with the variance at most ∥c∥₁ ². By Hoeffding's inequality, |η−ξ|≤δ with high probability (at least ⅔).

The decomposition of equation (10) can be computed efficiently in the special case of the Tensor Product noise model. This decomposition is optimal in the sense that ∥c∥₁=Γ. The resulting distribution q_(α) and stochastic matrices S_(α) have a simple product form. This leads to an efficient instantiation of Algorithm 1 that computes a δ-estimate of ξ in time roughly as

nΓ ²δ⁻²  (13)

It is noteworthy that this runtime scales linearly in the number of shots M, as shown in equation (4).

Next, we show how to implement Algorithm 1 in the case when the A-matrix is defined by the CTMP model. As defined previously, G is CTMP generator matrix or model parameter generator matrix, a defined for example in equation (8). We define the quantity

$\begin{matrix} {\gamma = {\max\limits_{x \in {\{{0,1}\}}^{n}}{{- \left\langle x \right.}G{\left. x \right\rangle.}}}} & (14) \end{matrix}$

The function

x|G|x

can be viewed as a classical Ising-like Hamiltonian with few-spin interactions. Although finding the maximum energy of such Hamiltonians is NP-hard in the worst case, this can be done for moderate system sizes, for example n≤50, using heuristic optimizers such as simulated annealing. In the following, we assume that the quantity γ has been already computed. First, we note that γ≥0 since G has non-positive diagonal elements, as shown in equations (8,9). We define a matrix B as follows:

B=I+γ ⁻¹ G.  (15)

Using equation (14), we can easily verify that B is a stochastic matrix. Furthermore,

$\begin{matrix} {A^{- 1} = {e^{- G} = {{e^{\gamma\; B} \cdot e^{{- \gamma}\; B}} = {{\sum\limits_{\alpha = 0}^{\infty}{\frac{{e^{\gamma}\left( {- \gamma} \right)}^{\alpha}}{\alpha!}B^{\alpha}}} \equiv {\sum\limits_{\alpha = 0}^{\infty}{c_{\alpha}S_{\alpha}{where}}}}}}} & (16) \\ {S_{\alpha} = {{B^{\alpha}\mspace{14mu}{and}\mspace{14mu} c_{\alpha}} = {\frac{{e^{\gamma}\left( {- \gamma} \right)}^{\alpha}}{\alpha!}.}}} & (17) \end{matrix}$

Therefore, S_(α) is a stochastic matrix for any integer α≥0. Thus Equations (16,17) provide a stochastic decomposition of A⁻¹ stated in equation (10).

$\begin{matrix} {{c}_{1} = {{\sum\limits_{\alpha = 0}^{\infty}\frac{e^{\gamma}\gamma^{\alpha}}{\alpha!}} = {e^{2\gamma}.}}} & (18) \end{matrix}$

The probability distribution

$\begin{matrix} {q_{\alpha} = {{{c_{\alpha}}/{c}_{1}} = \frac{e^{- \gamma}\gamma^{\alpha}}{\alpha!}}} & (19) \end{matrix}$

is the Poisson distribution with the mean γ. If we substitute the decomposition of equations (16, 17) into Algorithm 1, the only non-trivial step of the algorithm is sampling x from the distribution.

x|S _(α) |s ^(i)

=

x|B ^(α) |s ^(i)

.

This amounts to stimulating α steps of a Markov Chain with the transition matrix B. We note that B is a sparse efficiently computable matrix. More precisely, each column of matrix B has at most w non-zero elements. Therefore, we can simulate a single step of the Markov chain in time roughly w. Since E(α)=γ, simulating a steps of the Markov chain on average takes time roughly w γ. The overall runtime of the Algorithm 1 becomes

wγ|c| ₁ ²δ⁻² =wγe ^(4γ)δ⁻².

MEASUREMENT CALIBRATION: In an embodiment, the measurement calibration attempts to learn parameters of the noise model such as the rates r_(i) from the experimental data. A single calibration shot initializes n-qubit register in a basis state |x

, performs a noisy measurement, and records the measured outcome y. In an embodiment, the calibration is performed for several input states x¹, . . . , x^(K). For each input x^(i) one performs N calibration shots obtaining outputs y^(i1), . . . , y^(iN) The set of input states may be sufficiently large such that every atomic transition can be activated on some input. Therefore, for any generator G_(p) there exists at least one input state x^(i) such that G_(p)|x^(i)

≠0. For concreteness, we assume that only single-bit and two-bit transitions are allowed. A good choice of the input states {x^(i)} is the binary Hamming code. Namely, if p be the smallest integer such that 2^(p)≥n, we choose K=2^(p) and set

$x_{a}^{i} = {\sum\limits_{t = 1}^{p}{{{{bit}\left( {{i - 1},t} \right)} \cdot {{bit}\left( {{a - 1},t} \right)}}\mspace{14mu}{\left( {{mod}\; 2} \right).}}}$

for each a=1, . . . , n and i=1, . . . , K. Wherein bit (j,t) denotes the t-th bit of an integer j. It can be verified that the restrictions of x¹, . . . , x^(K) onto any pair of bits take each value 00, 01, 10, 11 the same number of times. Therefore, calibration based on the input states {x^(i)} probes each generator G^(p) equally often. For example, if n=7 one can choose K=8 and

-   -   x¹=0000000, x⁵=1010101     -   x²=0001111, x⁶=1011010     -   x³=0110011, x⁷=1100110     -   x⁴=0111100, x⁸=1101001         This method uses K<2n input states. For the Tensor Product (TP)         noise model we use n+1 input states x^(i) with the Hamming         weight 0 and 1. If we suppose O_(α) is some diagonal observable,         for each input state x^(i) an empirical mean value can be         defined as follows.

${cal}\left( {{O_{\alpha}\left. x^{i} \right)} = {\frac{1}{N}{\sum\limits_{j = 1}^{N}{{O_{\alpha}\left( y^{ij} \right)}.}}}} \right.$

The CTMP model predicts that y^(ij) is sampled from the probability distribution A|x^(i)

. We can compute the mean value of O_(a) over the distribution A|x_(i)

by simulating the CTMP using Gillespie algorithm, for example. The simulated mean value is given by the following equation.

${sim}\left( {{O_{\alpha}\left. x^{i} \right)} = {\sum\limits_{y}{{O_{\alpha}(y)}{\left\langle {y{A}x^{i}} \right\rangle.}}}} \right.$

Finally, we can define a distance function D({right arrow over (r)}) to quantify a discrepancy between the calibration and simulation data as follows

$\begin{matrix} {{D\left( \overset{->}{r} \right)} = {\sum\limits_{\alpha = 1}^{m}{\sum\limits_{i = 1}^{K}\left\lbrack {{cal}\left( {{O_{\alpha}\left. x^{i} \right)} - {{{sim}\left( {O_{\alpha}\left. x^{i} \right)} \right\rbrack}^{2}.}} \right.} \right.}}} & (20) \end{matrix}$

Where {right arrow over (r)}=(r₁, . . . , r_(w)) is the vector of rates and we fixed a suitable set of observables {O₁, . . . , O_(m)}. The optimal transition rates are found by minimizing the function D({right arrow over (r)}) over the domain {right arrow over (r)}∈

. Once the optimal rates r_(i) are computed, one may refine the model by discarding atomic generators G_(i) with negligible rates r_(i). The minimization then can be repeated for the refined model. We empirically found that a good choice of the calibration observables O_(a) is as follows. If C₁, . . . , C_(w), is defined as the subset of bits that support atomic transitions of the CTMP model, (equations (8) and (9)), the set of observables {O_(a)} includes all Pauli Z-type operators whose support is contained in some subset C_(i) as well as the target observable(s) O to be measured.

As it can be appreciated from the above paragraphs, it is also provided a computer readable medium on which is stored non-transitory computer-executable code, which when executed by a classical computer causes a quantum computer to: 1) perform a plurality of quantum measurements on a plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; 2) select a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of states; 3) train the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; 4) compute an inverse of the model representing an inverse of the matrix based on the trained model parameters; and 5) apply the computed inverse of the model to a noise prone quantum readout of the plurality of qubits of the quantum computer to obtain a substantially noise free quantum readout from the quantum computer.

In an embodiment, the model for the matrix is a Tensor Product (TP) noise model, and the plurality of model parameters include error rates of independent transitions from state 0 to state 1 and probabilities of independent transitions from state 1 to state 0.

In an embodiment, the model for the matrix is such that the matrix is a product of a plurality of qubit matrices, each qubit matrix representing a state of a given qubit j in the plurality of qubits, the matrix being expressed as:

${A = {\begin{bmatrix} {1 - \epsilon_{1}} & \eta_{1} \\ \epsilon_{1} & {1 - \eta_{1}} \end{bmatrix} \otimes \mspace{14mu}\ldots\mspace{14mu} \otimes \begin{bmatrix} {1 - \epsilon_{n}} & \eta_{n} \\ \epsilon_{n} & {1 - \eta_{n}} \end{bmatrix}}},$

wherein ∈_(j) are error rates describing transition from state 0 to state 1 for qubit j (j=1 . . . n), and

wherein η_(j) (j=1 . . . n) are error rates describing transition from state 1 to state 0 for qubit j (j=1 . . . n).

In an embodiment, the model for the matrix is a Continuous Time Markov Process (CTMP) noise model, and the plurality of model parameters include atomic generator elements G_(i) and transition rates r_(i), where i represents a qubit i in the plurality of qubits. In an embodiment, the model for the matrix is such that

A=exp(G)

wherein model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i as follows:

$G = {\sum\limits_{i}{G_{i}{r_{i}.}}}$

In an embodiment, the model approximates the matrix as an exponential of a model parameter generator matrix G, wherein the model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i. The atomic generator elements G_(i) of the model parameter generator matrix G generates a transition from a bit string a_(i) to another bit string b_(i) on a subset of bits C_(i), wherein a_(i) and b_(i) are either state 0 or state 1 of qubit i.

In an embodiment, the inverse of the model representing the inverse of the matrix is equal to the exponential of negative model parameter generator matrix G. In an embodiment, the number of the plurality of model parameters grows linearly with the number of the plurality of states.

In an embodiment, applying the computed inverse of the model to the noise prone quantum readout of the plurality of qubits comprises applying the computed inverse of the model to the noise prone quantum readout of the plurality of qubits to substantially correct the noise prone quantum readout so as to substantially remove noise in the noise prone quantum readout. In an embodiment, training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix comprises finding the plurality of model parameters that substantially fit the matrix.

As it can be appreciated from the above paragraphs, it is also provided a conventional (classical) computer configured to execute a non-transitory computer-executable code, the code when executed by the classical computer causes a quantum computer to: 1) perform a plurality of quantum measurements on plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; 2) select a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of states; 3) train the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; 4) compute an inverse of the model representing an inverse of the matrix based on the trained model parameters; and 5) apply the computed inverse of the model to a noise prone quantum readout of the plurality of qubits of the quantum computer to obtain a substantially noise free quantum readout from the quantum computer.

In an embodiment, the code may be stored in a computer program product which include a computer readable medium or storage medium or media. Examples of suitable storage medium or media include any type of disk including floppy disks, optical disks, DVDs, CD ROMs, magnetic optical disks, RAMs, EPROMs, EEPROMs, magnetic or optical cards, hard disk, flash card (e.g., a USB flash card), PCMCIA memory card, smart card, or other media. In another embodiment, the code can be downloaded from a remote conventional or classical computer or server via a network such as the internet, an ATM network, a wide area network (WAN) or a local area network. In yet another embodiment, the code can reside in the “cloud” on a server platform, for example. In some embodiments, the code can be embodied as program products in the conventional or classical computer such as a personal computer or server or in a distributed computing environment comprising a plurality of computers that interacts with the quantum computer by sending instructions to and receiving data from the quantum computer.

Generally, the classical or conventional computer provides inputs and receives outputs from the quantum computer. The inputs may include instructions included as part of the code. The outputs may include quantum data results of a computation of the code on the quantum computer.

The classical computer interfaces with the quantum computer via a quantum computer input interface and a quantum computer output interface. The classical computer sends commands or instructions included within code to the quantum computer system via the input and the quantum computer returns outputs of the quantum computation of the code to the classical computer via the output. The classical computer can communicate with the quantum computer wirelessly or via the internet. In an embodiment, the quantum computer can be a quantum computer simulator simulated on a classical computer. For example, the quantum computer simulating the quantum computing simulator can be one and the same as the classical computer. In another embodiment, the quantum computer is a superconducting quantum computer. In an embodiment, the superconducting quantum computer includes one or more quantum circuits (Q chips), each quantum circuit comprises a plurality qubits, one or more quantum gates, measurement devices, etc.

The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. 

We claim:
 1. A method of mitigating quantum readout errors by stochastic matrix inversion, comprising: performing a plurality of quantum measurements on a plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; selecting a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of qubits; training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; computing an inverse of the model representing an inverse of the matrix based on the trained model parameters; and providing the computed inverse of the model to a noise prone quantum readout of the plurality of qubits to obtain a substantially noise free quantum readout.
 2. The method according to claim 1, wherein selecting the model comprises selecting a Tensor Product (TP) noise model, and the plurality of model parameters include error rates of independent transitions from state 0 to state 1 and probabilities of independent transitions from state 1 to state
 0. 3. The method according to claim 2, wherein the model for the matrix is such that the matrix is a product of a plurality of qubit matrices, each qubit matrix representing a state of a given qubit j in the plurality of qubits, the matrix being expressed as: ${A = {\begin{bmatrix} {1 - \epsilon_{1}} & \eta_{1} \\ \epsilon_{1} & {1 - \eta_{1}} \end{bmatrix} \otimes \mspace{14mu}\ldots\mspace{14mu} \otimes \begin{bmatrix} {1 - \epsilon_{n}} & \eta_{n} \\ \epsilon_{n} & {1 - \eta_{n}} \end{bmatrix}}},$ wherein ∈_(j) are error rates describing transition from state 0 to state 1 for qubit j (j=1 . . . n), and wherein η_(j) (j=1 . . . n) are error rates describing transition from state 1 to state 0 for qubit j (j=1 . . . n).
 4. The method according to claim 1, wherein selecting the model comprises selecting a Continuous Time Markov Process (CTMP) noise model, and the plurality of model parameters include atomic generator elements G_(i) and transition rates r_(i), where i represents a qubit i in the plurality of qubits.
 5. The method according to claim 4, wherein the model for the matrix A is such that A=exp(G) wherein model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i as follows: $G = {\sum\limits_{i}{G_{i}{r_{i}.}}}$
 6. The method according to claim 5, wherein the atomic generator elements G_(i) include: element G₁ corresponding to a transition from state 0 to state 1 of a first qubit in the plurality of qubits, element G₂ corresponding to a transition from state 1 to state 0 of the first qubit in the plurality of qubits, element G₃ corresponding to a transition from state 0 to state 1 of a second qubit in the plurality of qubits, and element G₄ corresponding to a transition from state 1 to state 0 of the second qubit in the plurality of qubits.
 7. The method according to claim 6, wherein the atomic generator elements G_(i) further include: element G₅ corresponding to transition from state 01 to state 11 of neighboring first and second qubits, and element G₆ corresponding to a transition from state 10 to state 11 of the neighboring first and second qubits.
 8. The method according to claim 1, wherein the model approximates the matrix as an exponential of a model parameter generator matrix G, wherein the model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i, wherein the atomic generator elements G_(i) of the model parameter generator matrix G generates a transition from a bit string a_(i) to another bit string b_(i) on a subset of bits C_(i), wherein a_(i) and b_(i) are either state 0 or state 1 of qubit i.
 9. The method according to claim 8, wherein computing the inverse of the model representing the inverse of the matrix based on the trained model parameters comprises computing the exponential of negative model parameter generator matrix G.
 10. The method according to claim 1, wherein the number of the plurality of model parameters grows linearly with the number of the plurality of states.
 11. The method according to claim 1, wherein providing the computed inverse of the model to the noise prone quantum readout of the plurality of qubits comprises applying the computed inverse of the model to the noise prone quantum readout of the plurality of qubits to substantially correct the noise prone quantum readout so as to substantially remove noise in the noise prone quantum readout.
 12. The method according to claim 1, further comprising constructing the matrix, the matrix having a plurality of matrix elements, each element of the matrix associates each of the pre-determined states of the plurality of qubits with a corresponding each of the plurality of measurement outputs.
 13. The method according to claim 12, wherein the number of the plurality of model parameters grows less than a growth of a number of the plurality of matrix elements.
 14. The method according to claim 1, wherein training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix comprises finding the plurality of model parameters that substantially fit the matrix.
 15. A computer readable medium on which is stored non-transitory computer-executable code, which when executed by a classical computer causes a quantum computer to: perform a plurality of quantum measurements on plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; select a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of states; train the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; compute an inverse of the model representing an inverse of the matrix based on the trained model parameters; and apply the computed inverse of the model to a noise prone quantum readout of the plurality of qubits of the quantum computer to obtain a substantially noise free quantum readout from the quantum computer.
 16. The computer readable medium according to claim 15, wherein the model for the matrix is a Tensor Product (TP) noise model, and the plurality of model parameters include error rates of independent transitions from state 0 to state 1 and probabilities of independent transitions from state 1 to state
 0. 17. The computer readable medium according to claim 16, wherein the model for the matrix is such that the matrix is a product of a plurality of qubit matrices, each qubit matrix representing a state of a given qubit j in the plurality of qubits, the matrix being expressed as: ${A = {\begin{bmatrix} {1 - \epsilon_{1}} & \eta_{1} \\ \epsilon_{1} & {1 - \eta_{1}} \end{bmatrix} \otimes \mspace{14mu}\ldots\mspace{14mu} \otimes \begin{bmatrix} {1 - \epsilon_{n}} & \eta_{n} \\ \epsilon_{n} & {1 - \eta_{n}} \end{bmatrix}}},$ wherein ∈_(j) are error rates describing transition from state 0 to state 1 for qubit j (j=1 . . . n), and wherein η_(j) (j=1 . . . n) are error rates describing transition from state 1 to state 0 for qubit j (j=1 . . . n).
 18. The computer readable medium according to claim 16, wherein the model for the matrix is a Continuous Time Markov Process (CTMP) noise model, and the plurality of model parameters include atomic generator elements G_(i) and transition rates r_(i), where i represents a qubit i in the plurality of qubits.
 19. The computer readable medium according to claim 18, wherein the model for the matrix is such that A=exp(G) wherein model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i as follows: $G = {\sum\limits_{i}{G_{i}{r_{i}.}}}$
 20. The computer readable medium according to claim 15, wherein the model approximates the matrix as an exponential of a model parameter generator matrix G, wherein the model parameter generator matrix G is equal to a sum of products of atomic generator elements G_(i) by transition time-independent rates r_(i) over all qubits i, wherein the atomic generator elements G_(i) of the model parameter generator matrix G generates a transition from a bit string a_(i) to another bit string b_(i) on a subset of bits C_(i), wherein a_(i) and b_(i) are either state 0 or state 1 of qubit i.
 21. The computer readable medium according to claim 20, wherein the inverse of the model representing the inverse of the matrix is equal to the exponential of negative model parameter generator matrix G.
 22. The computer readable medium according to claim 15, wherein the number of the plurality of model parameters grows linearly with the number of the plurality of states.
 23. The computer readable medium according to claim 15, wherein applying the computed inverse of the model to the noise prone quantum readout of the plurality of qubits comprises applying the computed inverse of the model to the noise prone quantum readout of the plurality of qubits to substantially correct the noise prone quantum readout so as to substantially remove noise in the noise prone quantum readout.
 24. The computer readable medium according to claim 1, wherein training the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix comprises finding the plurality of model parameters that substantially fit the matrix.
 25. A classical computer configured to execute a non-transitory computer-executable code, the code when executed by the classical computer causes a quantum computer to: perform a plurality of quantum measurements on plurality of qubits having predetermined plurality of states to obtain a plurality of measurement outputs; select a model for a matrix linking the predetermined plurality of states to the plurality of measurement outputs, the model having a plurality of model parameters, wherein a number of the plurality of model parameters grows less than exponentially with a number of the plurality of states; train the plurality of model parameters to minimize a loss function that compares predictions of the model with the matrix; compute an inverse of the model representing an inverse of the matrix based on the trained model parameters; and apply the computed inverse of the model to a noise prone quantum readout of the plurality of qubits of the quantum computer to obtain a substantially noise free quantum readout from the quantum computer. 